# -*- coding: utf-8 -*-

# find()函数就是实现检索字符串
# 输出的返回值是有字符串的就开始索引，没有的直接返回-1。
info = "python is a good code"
result = info.find('a') # 10
print (result)

result = info.find('ok')
print(result) # -1